package com.wjc.myktapplication.cusview

import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.widget.LinearLayout

/**
 * ClassName: com.wjc.myktapplication.cusview
 * Description:
 * JcChen on 2021.08.30.21:53
 */
class CusLinearLayout constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
    }


    override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
        super.onLayout(changed, l, t, r, b)
    }


    // 自定义 ViewGroup ，不需实现它，只有子View才需要调用具体绘制
    override fun onDraw(canvas: Canvas?) {
        super.onDraw(canvas)
    }

}